﻿<%@ Page Language="c#" CodeBehind="DicManagement.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.DicManagement.DicManagement" %>

<%@ Register TagPrefix="iewc1" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="uc1" TagName="PageNavigation" Src="../UserControls/PageNavigation.ascx" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Alcatel-Lucent Customer Care</title>

    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/entity.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/entity.js.aspx" type="text/javascript"></script>
 

    <script src="../js/common.js" type="text/javascript"></script>





    <script language="VBScript" src="../js/alert.vbs" type="text/vbscript"></script>



    <script type="text/javascript">
        function showTypeForm(id) {
            var code = window.showModalDialog('ShowTypeForm.aspx?id=' + id, '', 'dialogHeight:200px;dialogWidth:400px;dialogTop:px;dialogLeft:px;center:Yes;scroll:yes;resizable:no;status:no;');
            window.Form1.txtOperation.value = code;
        }
        function showItemForm(id) {
            var code = window.showModalDialog('ShowItemForm.aspx?id=' + id, '', 'dialogHeight:300px;dialogWidth:400px;dialogTop:px;dialogLeft:px;center:Yes;scroll:yes;resizable:no;status:no;');
            window.Form1.txtOperation.value = code;

        }
        
    </script>

    <script type="text/javascript">
        $(function() {
            $(".dic-add").bind("click", function() {
                var result = "";
                if ($(".Star").parent().next().children().first().val() == "") {
                    result += "Name could not be empty!\n";
                    $(".Star").parent().next().children().first().addClass("validation-error");
                }
                else {
                    $(".Star").parent().next().children().first().removeClass("validation-error");
                }

                if (result != "") {
                    alert(result);
                    return false;
                }
                return true;
            });

        });
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="mainbox">
        <uc1:PageNavigation ID="PageNavigation1" runat="server"></uc1:PageNavigation>
        <a href="../UserControls/PageNavigation.ascx"></a>
        <table id="Table1" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="padding_lft5">
                    <td>
                        <table id="Table4" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <!--tab区域-->
                                    <div class="tabbox purplebg_dark">
                                        <ul class="tabpos">
                                            <li><span class="tab_active"> <%=Resources.PageTitles.DictionaryManagement%></span></li>
                                        </ul>
                                    </div>
                                    <div class="formbox">
                                        <span class=" float_lft">
                                            <asp:Label ID="lbType" runat="server"></asp:Label>: </span><span class=" float_lft padding_lft20">
                                                <asp:DropDownList ID="ddlDicType" runat="server" AutoPostBack="True">
                                                </asp:DropDownList>
                                            </span><span class=" float_lft padding_lft20">
                                                <asp:ResourceButton ID="btnExport" runat="server" ToolTip="ExportTips" Text="Export" CssClass="btn" />
                                            </span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <asp:DataGrid ID="dgDic" PagerStyle-Visible="False" AllowPaging="True" PageSize="10"
                                                    runat="server" CellPadding="0" AutoGenerateColumns="False" ShowHeader="True"
                                                    AllowSorting="True" CssClass="tablestyle">
                                                    <SelectedItemStyle></SelectedItemStyle>
                                                    <ItemStyle CssClass="tbody"></ItemStyle>
                                                    <HeaderStyle CssClass="thead"></HeaderStyle>
                                                    <Columns>
                                                        <asp:BoundColumn DataField="DicItemKey" HeaderText="Value<br/>值" ReadOnly="True"
                                                            SortExpression="DicItemKey">
                                                            <ItemStyle Width="65%"></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="Sort" HeaderText="SortOrder<br/>排序值" ReadOnly="True"
                                                            SortExpression="Sort">
                                                            <ItemStyle Width="10%"></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="IsEnabled" HeaderText="Enabled<br/>是否可用" ReadOnly="True"
                                                            SortExpression="IsEnabled">
                                                            <ItemStyle Width="10%"></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="IsDefault" HeaderText="Default<br/>默认" ReadOnly="True"
                                                            SortExpression="IsDefault">
                                                            <ItemStyle Width="10%"></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:TemplateColumn HeaderText="Action<br/>操作">
                                                            <HeaderStyle Width="5%"></HeaderStyle>
                                                            <ItemStyle></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:ImageButton ImageUrl="../Images/COMEDIT.GIF" ID="imageItem" runat="server" ToolTip="Edit (编辑)">
                                                                </asp:ImageButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn Visible="False" DataField="DicItemID"></asp:BoundColumn>
                                                    </Columns>
                                                    <PagerStyle Font-Size="11pt" HorizontalAlign="Center" BackColor="#eeeeee" CssClass="paging"
                                                        Visible="False" Mode="NumericPages"></PagerStyle>
                                                </asp:DataGrid>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table id="Table3" cellspacing="0" cellpadding="0" class="pagecounting">
                                                    <tr>
                                                        <td valign="middle">
                                                            Total Records:
                                                            <asp:Label ID="lbl_ItemRecordCount" runat="server">lbl_ItemRecordCount</asp:Label>&nbsp;&nbsp;&nbsp;<img
                                                                src="../images/PageIcon.GIF" border="0">&nbsp;Page:
                                                            <asp:Label ID="lbl_ItemCurrentPageIndex" runat="server">lbl_ItemCurrentPageIndex</asp:Label>&nbsp;/&nbsp;
                                                            <asp:Label ID="lbl_ItemPageCount" runat="server">lbl_ItemPageCount</asp:Label>
                                                        </td>
                                                        <td align="right">
                                                            <asp:ImageButton ID="btn_ItemPageFirst" runat="server" ImageUrl="../images/pg_first.gif"
                                                                ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                            <asp:ImageButton ID="btn_ItemPagePrev" runat="server" ImageUrl="../images/pg_pre.gif"
                                                                ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                            <asp:ImageButton ID="btn_ItemPageNext" runat="server" ImageUrl="../images/pg_next.gif"
                                                                ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                            <asp:ImageButton ID="btn_ItemPageLast" runat="server" ImageUrl="../images/pg_last.gif"
                                                                ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp; Go To Page:
                                                            <asp:TextBox ID="txt_ItemPage" runat="server" CssClass="txtbox pager-text" MaxLength="5">
                                                            </asp:TextBox>
                                                            <asp:ImageButton ID="btn_ItemGotoPage" runat="server" ImageUrl="../images/PageIcon.GIF">
                                                            </asp:ImageButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table width="100%" class="tablestyle2">
                                                    <tr>
                                                        <td colspan="2" class="tablestyle2_Title">
                                                            <asp:Label ID="lbAddItem" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tablestyle2_tdTitle">
                                                            <asp:Label ID="lbItemName" runat="server"></asp:Label>
                                                            <span class="Star" id="span2" runat="server" style="color: red">*</span>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtItemName" runat="server" Width="120px" MaxLength="50" CssClass="txtbox"
                                                                onmouseover="this.className='txtboxover';" onMouseOut="this.className='txtbox';"></asp:TextBox>
                                                            <asp:CheckBox ID="chkIsEnabled" runat="server"></asp:CheckBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="tablestyle2_tdTitle">
                                                            <asp:Label ID="lbSortOrder" runat="server"></asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtSortOrder" runat="server" Width="120px" MaxLength="5" CssClass="txtbox"
                                                                onmouseover="this.className='txtboxover';" onMouseOut="this.className='txtbox';"></asp:TextBox>
                                                            <asp:CheckBox ID="chkIsDefault" runat="server"></asp:CheckBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <asp:ResourceButton ID="btnNewItem" runat="server" ToolTip="AddTips" Text="Add" CssClass="btn dic-add" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <p>
                                        <asp:PlaceHolder ID="MainBody" runat="server"></asp:PlaceHolder>
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <asp:TextBox ID="txtOperation" Style="display: none" runat="server"></asp:TextBox>
    </div>
    </form>
     <%--页面刷新时显示--%>
   <%-- <div id="dialog-message" title="Loading..." style="display: none">
        <p>
            <br />
            <span class="entity-loading"></span><span>Operation in process, please wait...<br />
                <br />
                处理中, 请稍候。。。</span>
        </p>
    </div>--%>
</body>
</html>
